/**
 * @author Aaron
 * @createTime 15:45 2022/6/1
 **/
package models_main

import (
	"fmt"
	"longmen/server/pkg/db/mysql/models"
)

type NobleRecord struct {
	Id         uint
	NobleId    uint8
	Uid        uint
	AnchorId   uint
	Expiration int64
	From       int   // 1购买,2系统赠送
	CreateTime int64 `gorm:"autoCreateTime"`
}

func (NobleRecord) TableName() string {
	return fmt.Sprintf("%snoble_record", models.Prefix)
}
